<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="edu.unsw.comp9321.jdbc.*, java.util.*"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
		<title>Welcome to CarRental</title>
		<link href="CSS.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<div id="pagehdr">
			<h1>Car Rental reservation system </h1>
		</div>

		<h2>Welcome to Car Rental. Please fill the following form.</h2>
		<%
		if (request.getAttribute("violation") != null) {
			if (!request.getAttribute("violation").equals("noViolation")) {
			out.write("<span style=\"color:red\"><strong>"
				+ request.getAttribute("violation") +"</strong></span><br/><br/>");
			}
		}
		%>
		<form action="controller" method="POST">
			<input type="hidden" name="op" value="search"/>
			<strong>Start date</strong>: <input name="startDate" type="date"/><br/>
			<strong>End date</strong>: <input name="endDate" type="date"/> <br/>
			<br/>
			<strong>Body type</strong>:
			<select name="bodyType">		
				<option value="Hatchback">Hatchback</option>
				<option value="Sedan">Sedan</option>
				<option value="Wagon">Wagon</option>
			</select><br/><br/>
			
			<strong>Transmission type</strong>:
			<select name="transType">
				<option value="Automatic">Automatic</option>
				<option value="Manual">Manual</option>
			</select><br/><br/>
			
			<input type="submit" value="Submit">
		</form>
	</body>
</html>